/**
*  
* @Function 用户实体类
* @ProjectName credit-data-platform 
* @PackageName com.py.credit.entity    
* @FileName SysUserEntity.java    
* @Date 2018年5月24日上午9:57:48
* @Author Min DongXv
* @Copyright (c) 2018, 金电联行 All Rights Reserved.   
*   
*/  
package com.py.credit.entity;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * 
 * @Function 用户实体类
 * @ClassName SysUserEntity
 * @Date 2018年5月24日 上午9:57:48
 * @Author Min DongXv
 * 
 */
public class SysUser implements Serializable {

	private static final long serialVersionUID = -1724017506613406222L;

	private Long id;
	/** 用户名 **/
	private String username;
	/** 密码 **/
	private String password;
	/** 真实姓名 **/
	private String realName;
	/** 性别，1：男，2：女 **/
	private int sex;
	/** 手机号 **/
	private String mobilePhone;
	/** 部门ID **/
	private long officeId;
	/** 用户类型，1：普通用户，2：超级管理员 **/
	private int userType;
	/** 用户状态，1：启用，2：停用 **/
	private int userStatus;
	/** 部门名称 **/
	private String officeName;
	/** 部门编码 **/
	private String officeCode;
	/** 部门父节点ID **/
	private long parentId;
	/** 部门所有父节点 **/
	private String allParentId;
	/** 删除标识，1：否，2：是 **/
	private int delFlag;
	/** 区域ID */
	private Long areaId;
	/** 区域名称 */
	private String areaName;
	/** 创建时间 **/
	private Timestamp createTime;
	/** 更新时间 **/
	private Timestamp updateTime;

	public SysUser() {
	}

	/**
	 * @return the id
	 */
	public Long getId() {
		return id;
	}

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * @return the username
	 */
	public String getUsername() {
		return username;
	}

	/**
	 * @param username
	 *            the username to set
	 */
	public void setUsername(String username) {
		this.username = username;
	}

	/**
	 * @return the password
	 */
	public String getPassword() {
		return password;
	}

	/**
	 * @param password
	 *            the password to set
	 */
	public void setPassword(String password) {
		this.password = password;
	}

	/**
	 * @return the realName
	 */
	public String getRealName() {
		return realName;
	}

	/**
	 * @param realName
	 *            the realName to set
	 */
	public void setRealName(String realName) {
		this.realName = realName;
	}

	/**
	 * @return the sex
	 */
	public int getSex() {
		return sex;
	}

	/**
	 * @param sex
	 *            the sex to set
	 */
	public void setSex(int sex) {
		this.sex = sex;
	}

	/**
	 * @return the mobilePhone
	 */
	public String getMobilePhone() {
		return mobilePhone;
	}

	/**
	 * @param mobilePhone
	 *            the mobilePhone to set
	 */
	public void setMobilePhone(String mobilePhone) {
		this.mobilePhone = mobilePhone;
	}

	/**
	 * @return the officeId
	 */
	public long getOfficeId() {
		return officeId;
	}

	/**
	 * @param officeId
	 *            the officeId to set
	 */
	public void setOfficeId(long officeId) {
		this.officeId = officeId;
	}

	/**
	 * @return the userType
	 */
	public int getUserType() {
		return userType;
	}

	/**
	 * @param userType
	 *            the userType to set
	 */
	public void setUserType(int userType) {
		this.userType = userType;
	}

	/**
	 * @return the userStatus
	 */
	public int getUserStatus() {
		return userStatus;
	}

	/**
	 * @param userStatus
	 *            the userStatus to set
	 */
	public void setUserStatus(int userStatus) {
		this.userStatus = userStatus;
	}

	/**
	 * @return the officeName
	 */
	public String getOfficeName() {
		return officeName;
	}

	/**
	 * @param officeName
	 *            the officeName to set
	 */
	public void setOfficeName(String officeName) {
		this.officeName = officeName;
	}

	/**
	 * @return the delFlag
	 */
	public int getDelFlag() {
		return delFlag;
	}

	/**
	 * @param delFlag
	 *            the delFlag to set
	 */
	public void setDelFlag(int delFlag) {
		this.delFlag = delFlag;
	}

	/**
	 * @return the areaId
	 */
	public Long getAreaId() {
		return areaId;
	}

	/**
	 * @param areaId
	 *            the areaId to set
	 */
	public void setAreaId(Long areaId) {
		this.areaId = areaId;
	}

	/**
	 * @return the areaName
	 */
	public String getAreaName() {
		return areaName;
	}

	/**
	 * @param areaName
	 *            the areaName to set
	 */
	public void setAreaName(String areaName) {
		this.areaName = areaName;
	}

	/**
	 * @return the createTime
	 */
	public Timestamp getCreateTime() {
		return createTime;
	}

	/**
	 * @param createTime
	 *            the createTime to set
	 */
	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	/**
	 * @return the updateTime
	 */
	public Timestamp getUpdateTime() {
		return updateTime;
	}

	/**
	 * @param updateTime
	 *            the updateTime to set
	 */
	public void setUpdateTime(Timestamp updateTime) {
		this.updateTime = updateTime;
	}

	/**
	 * @return the officeCode
	 */
	public String getOfficeCode() {
		return officeCode;
	}

	/**
	 * @param officeCode
	 *            the officeCode to set
	 */
	public void setOfficeCode(String officeCode) {
		this.officeCode = officeCode;
	}

	/**
	 * @return the parentId
	 */
	public long getParentId() {
		return parentId;
	}

	/**
	 * @param parentId
	 *            the parentId to set
	 */
	public void setParentId(long parentId) {
		this.parentId = parentId;
	}

	/**
	 * @return the allParentId
	 */
	public String getAllParentId() {
		return allParentId;
	}

	/**
	 * @param allParentId
	 *            the allParentId to set
	 */
	public void setAllParentId(String allParentId) {
		this.allParentId = allParentId;
	}

	@Override
	public String toString() {
		return "SysUser [id=" + id + ", username=" + username + ", password=" + password + ", realName=" + realName
				+ ", sex=" + sex + ", mobilePhone=" + mobilePhone + ", officeId=" + officeId + ", userType=" + userType
				+ ", userStatus=" + userStatus + ", officeName=" + officeName + ", officeCode=" + officeCode
				+ ", parentId=" + parentId + ", allParentId=" + allParentId + ", delFlag=" + delFlag + ", areaId="
				+ areaId + ", areaName=" + areaName + ", createTime=" + createTime + ", updateTime=" + updateTime + "]";
	}
}
